<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ImagePicker.ascx.cs" Inherits="Impact.Web.Admin.Controls.ImagePicker" %>

<%@ Register Src="~/Admin/Controls/FolderPicker.ascx" TagPrefix="impactControls" TagName="FolderPicker" %>
<%@ Register Src="~/Admin/Controls/FilePicker.ascx" TagPrefix="impactControls" TagName="FilePicker" %>

    <asp:RadioButton ID="noImageRadio" Text="No Image"
        GroupName="ImagePicker" AutoPostBack="true" OnCheckedChanged="RadioCheckedChanged" runat="server" />
    <asp:RadioButton ID="randomRadio" Text="Random Image"
        GroupName="ImagePicker" AutoPostBack="true" OnCheckedChanged="RadioCheckedChanged" runat="server" />
    <asp:RadioButton ID="specificRadio" Text="This Image:"
        GroupName="ImagePicker" AutoPostBack="true" OnCheckedChanged="RadioCheckedChanged" runat="server" />
        
    <br />
    
    <asp:Panel ID="randomPanel" Visible="false" runat="server">
        Select a folder containing the images to randomly pick from: 
        <impactControls:FolderPicker ID="randomFolder" BasePath="~/UserFiles" runat="server" />
    </asp:Panel>
    
    <asp:Panel ID="specificPanel" Visible="false" runat="server">
        Select an image to always use on this page:
        <impactControls:FilePicker ID="specificFile" BasePath="~/UserFiles" runat="server" />        
    </asp:Panel>

